package com.leet.everyday;

public class Random10 {
    static int rand7(){
        return (int)Math.random();
    }
    public int rand10(){
        int first,second;
        while((first=rand7())>6);
        while((second=rand7())>5);
        return ((first&1)==1) ? second:second+5;
    }
}